package com.swiftride.feign;

import com.swiftride.constants.Constants;
import com.swiftride.fallback.DriverFeignFallbackFactory;
import com.swiftride.pojo.result.DriverTodayInfoResult;
import com.swiftride.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = Constants.Remote.SERVICE_DRIVER, path = "/manager/driver",
        contextId = "DriverFeign", fallbackFactory = DriverFeignFallbackFactory.class)
public interface DriverFeign {

    @GetMapping("/driverTodayInfoDto")
    R<DriverTodayInfoResult> getDriverTodayInfoDto();
}